package com.htz.agency.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.htz.agency.pojo.Announcement;
import com.htz.agency.pojo.dto.AnnouncementDTO;
import com.htz.agency.pojo.query.AnnouncementQuery;
import com.htz.agency.pojo.vo.AnnouncementVO;
import com.htz.agency.util.PageResult;


import java.util.List;


public interface AnnouncementService extends IService<Announcement> {

    PageResult<List<AnnouncementVO>> list(AnnouncementQuery query);



    //批量删除
    Boolean exDeletedByIds(List<Integer> list);

    //批量逻辑删除
    boolean deleteAll();

    //删除已过期的
    boolean expiredAnnouncement();



    /* AnnouncementVO getById(Long id);*/
}
